﻿namespace Sharp.Platform.Other
{
    /// <summary>
    /// 标准 Format 格式化串
    /// </summary>
    public struct StandardFormat
    {
        /// <summary>
        /// 短日期时间(yyyy-mm-dd)
        /// </summary>
        public const string ShortDate = "f";
        /// <summary>
        /// 日期(yyyy-mm-dd)
        /// </summary>
        public const string Date = "yyyy-MM-dd";
        /// <summary>
        /// 时间(hh:nn:ss)
        /// </summary>
        public const string Time = "T";
        /// <summary>
        /// 短时间(hh:nn)
        /// </summary>
        public const string ShortTime = "t";
        /// <summary>
        /// 日期时间(yyyy-mm-dd hh:nn:ss)
        /// </summary>
        public const string DateTime = "yyyy-MM-dd HH:mm:ss";
        /// <summary>
        /// 短日期时间(yyyy-mm-dd hh:nn)
        /// </summary>
        public const string ShortDateTime = "yyyy-MM-dd HH:mm";
        /// <summary>
        /// 一位小数
        /// </summary>
        public const string OneDecimal = "{0:F1}";
        /// <summary>
        /// 两位小数
        /// </summary>
        public const string TwoDecimal = "{0:F2}";
        /// <summary>
        /// 四位小数
        /// </summary>
        public const string FourDecimal = "{0:F4}";
    }
}